#delimit ;
clear all;
set more off;

capture log close;

log using log/atusresp_0321.log, replace;
 
import delimited
tucaseid
tulineno
tespuhrs
trdtind1
trdtocc1
trernhly
trernupd
trhernal
trhhchild
trimind1
trmjind1
trmjocc1
trmjocgr
trnhhchild
trnumhou
trohhchild
trtalone
trtcc
trthhfamily
trtnochild
trtnohh
trto
trtohh
trtohhchild
trtonhh
trtonhhchild
trtsponly
trtspouse
trtunmpart
trwernal
tthr
ttot
ttwk
tuabsot
tuyear 
teabsrsn
teern
teernh1o
teernh2
teernhro
teernhry
teernper
teernrt
teernuot
teernwkp
tehrftpt
tehrusl1 
tehrusl2 
teio1cow
teio1icd 
teio1ocd 
telayavl
telaylk
telkavl
telkm1
teret1
teschft
tubus
tubus1
tubus2ot
tubusl1
tubusl2
tubusl3
tubusl4
tucc2 
tucc4 
tufwk
tuio1mfg
tuiodp1
tuiodp2
tuiodp3
tulay
tulay6m
tulayavr
tulaydt
tulk
tulkavr
tulkdk1
tulkdk2
tulkdk3
tulkdk4
tulkm2
tulkm3
tulkm4
tulkm5
tulkm6
tulkps1
tulkps2
tulkps3
tulkps4
tumonth
trtccc
trtcctot
trtchild
trtcoc
trtfamily
trtfriend
trthh
tudis2
turetot
tuspabs
tuspusft
tuspwk
tremodr
tucc9
tudiarydate 
tudis
tudis1
trchildnum
tudiaryday
trernwa
trholiday
trspftpt
trsppres
trdpftpt
tufnwgtp
tespempnot
teschlvl
teschenr
temjot
telfs
tehruslt 
tryhhchild
trwbmodr
trtalone_wk
trtccc_wk
trlvmodr
trtec
tuecytd
tuelder
tuelfreq
tuelnum
tu20fwgt
 using c:\atus\atus0321\atusresp-0321\atusresp_0321.dat, stringcols(1) ;
 
label variable teabsrsn "Edited: what was the main reason you were absent from your job last week?";
label variable teern "Edited: total weekly overtime earnings (2 implied decimals)";
label variable teernh1o "Edited: hrly pay rate (main job) exc. overtime, tips, & commissions (2 decimals)";
label variable teernh2 "Edited: hrly pay rate (main job) exc. overtime, tips, & commissions (2 decimals)";
label variable teernhro "Edited: how many hours do you usually work per week at this rate?";
label variable teernhry "Edited: hourly/non-hourly status";
label variable teernper "Edited: main job, easiest to report earnings: hourly, weekly, annually, or other";
label variable teernrt "Edited:  are you paid at an hourly rate on this job?";
label variable teernuot "Edited: usually receive overtime pay, tips, or commissions at your main job?";
label variable teernwkp "Edited: how many weeks a year do you get paid?";
label variable tehrftpt "Edited: do you usually work > 35 hours per week at your job(s)/family business?";
label variable tehrusl1 "Edited: how many hours per week do you usually work at your main job?";
label variable tehrusl2 "Edited: how many hours per week do you usually work at your other job(s)?";
label variable tehruslt "Edited: total hours usually worked per week (sum of TEHRUSL1 and TEHRUSL2)";
label variable teio1cow "Edited: individual class of worker code (main job)";
label variable teio1icd "Edited: industry code (main job)";
label variable teio1ocd "Edited: occupation code (main job)";
label variable telayavl "Edited: could you have returned to work in the last 7 days if recalled?";
label variable telaylk "Edited: have you been looking for work during the last 4 weeks? (Laid off)";
label variable telfs "Edited: labor force status";
label variable telkavl "Edited: could you have started a job in the last 7 days if one had been offered?";
label variable telkm1 "Edited: things you have done to find work during the last 4 weeks? (1st method)";
label variable temjot "Edited: in the last 7 days did you have more than one job?";
label variable teret1 "Edited: do you currently want a job, either full or part time?";
label variable teschenr "Edited: are you enrolled in high school, college, or university?";
label variable teschft "Edited: are you enrolled as a full-time or part-time student?";
label variable teschlvl "Edited: would that be high school, college, or university?";
label variable tespempnot "Edited: employment status of spouse or unmarried partner";
label variable tespuhrs "Edited: usual hours of work of spouse or unmarried partner";
label variable trchildnum "Number of household children < 18";
label variable trdpftpt "Full time or part time employment status of respondent";
label variable trdtind1 "Detailed industry recode (main job)";
label variable trdtocc1 "Detailed occupation recode (main job)";
label variable tremodr "Eating and Health Module respondent";
label variable trernhly "Hourly earnings (2 implied decimals)";
label variable trernupd "Earnings update flag";
label variable trernwa "Weekly earnings (2 implied decimals)";
label variable trhernal "TRERNHLY: allocation flag";
label variable trhhchild "Presence of household children < 18";
label variable trholiday "Flag to indicate if diary day was a holiday";
label variable trimind1 "Intermediate industry recode (main job)";
label variable trlvmodr "Leave module respondent";
label variable trmjind1 "Major industry recode (main job)";
label variable trmjocc1 "Major occupation recode (main job)";
label variable trmjocgr "Major occupation category (main job)";
label variable trnhhchild "Presence of own non-household child < 18";
label variable trnumhou "Number of people living in respondent's household";
label variable trohhchild "Presence of own household children < 18";
label variable trspftpt "Full time or part time employment status of spouse or unmarried partner";
label variable trsppres "Presence of the respondent's spouse or unmarried partner in the household";
label variable trtalone "Total time respondent spent alone (in minutes)";
label variable trtalone_wk "Total work- and nonwork-related time respondent spent alone (in minutes)";
label variable trtcc "Minutes diary day providing secondary childcare for hh & own nonhh children < 13";
label variable trtccc "Total time respondent spent with customers, clients, and coworkers (in minutes)";
label variable trtccc_wk "Minutes work- and nonwork-related time with customers/clients/coworkers";
label variable trtcctot "Minutes during diary day providing secondary childcare for all children < 13 ";
label variable trtchild "Minutes respondent spent with household or nonhousehold children < 18";
label variable trtcoc "Minutes diary day providing secondary childcare for nonown, nonhh children < 13";
label variable trtec "Total time spent providing eldercare (in minutes)";
label variable trtfamily "Total time respondent spent with family members (in minutes)";
label variable trtfriend "Total time respondent spent with friends (in minutes)";
label variable trthh "Minutes during diary day providing secondary childcare for hh children < 13";
label variable trthhfamily "Total time respondent spent with household family members (in minutes)";
label variable trtnochild "Total time respondent spent with nonown children < 18 (in minutes)";
label variable trtnohh "Minutes diary day providing secondary childcare for nonown hh children < 13";
label variable trto "Minutes during diary day providing secondary childcare for own children < 13";
label variable trtohh "Minutes diary day providing secondary childcare for own household children < 13 ";
label variable trtohhchild "Total time respondent spent with own household children < 18 (in minutes)";
label variable trtonhh "Minutes diary day providing secondary childcare for own nonhh children < 13";
label variable trtonhhchild "Total time respondent spent with own nonhousehold children < 18 (in minutes)";
label variable trtsponly "Total time respondent spent with spouse only (in minutes)";
label variable trtspouse "Total time respondent spent with spouse (others may be present) (in minutes)";
label variable trtunmpart "Minutes spent with unmarried partner (others may be present)";
label variable trwbmodr "Well-Being Module respondent";
label variable trwernal "TRERNWA: allocation flag";
label variable tryhhchild "Age of youngest household child < 18";
label variable tthr "Hourly pay topcode flag";
label variable ttot "Overtime amount topcode flag";
label variable ttwk "Weekly earnings topcode flag";
label variable tuabsot "In the last 7 days, did you have a job either full or part time?";
label variable tubus "Does anyone in the household own a business or a farm?";
label variable tubus1 "In the last 7 days, did you do any unpaid work in the family business or farm?";
label variable tubus2ot "Do you receive payments or profits from the business?";
label variable tubusl1 "TULINENO of farm or business owner (first owner)";
label variable tubusl2 "TULINENO of farm or business owner (second owner)";
label variable tubusl3 "TULINENO of farm or business owner (third owner)";
label variable tubusl4 "TULINENO of farm or business owner (fourth owner)";
label variable tucaseid "ATUS Case ID (14-digit identifier)";
label variable tucc2 "Time first household child < 13 woke up";
label variable tucc4 "Time last household child < 13 went to bed";
label variable tucc9 "Are the non-own, non-household children you cared for in TUCC8 related to you?";
label variable tudiarydate "Date of diary day (date about which the respondent was interviewed)";
label variable tudiaryday "Day of the week of diary day (day about which the respondent was interviewed)";
label variable tudis "Disability prevent you from doing any kind of work for the next 6 months?";
label variable tudis1 "Disability that prevents you accepting any kind of work during next 6 months?";
label variable tudis2 "Disability that prevents you accepting any kind of work during next 6 months?";
label variable tuecytd "Did you provide any eldercare or assistance yesterday?";
label variable tuelder "Since 1st of [REF_MONTH], cared for adult due to condition related to aging?";
label variable tuelfreq "How often did you provide this care?";
label variable tuelnum "Since the first of [REF_MONTH], how many people have you provided this care to?";
label variable tufnwgtp "ATUS final weight";
label variable tufwk "In the last 7 days did you do any work for pay or profit?";
label variable tuio1mfg "Business/organization mfg., retail trade, wholesale, something else? (main job)";
label variable tuiodp1 "Do you still work for (CPS employer's name)? (main job)";
label variable tuiodp2 "Usual activities and duties of job changed since (CPS interview)? (main job)";
label variable tuiodp3 "Occupation/duties changed since CPS interview? (main job)";
label variable tulay "During the last 7 days were you on layoff from your job?";
label variable tulay6m "Any indication recalled to work within the next 6 months?";
label variable tulayavr "Why could you not have started a job in the last week?";
label variable tulaydt "Has your employer given you a date to return to work? (to layoff job) ";
label variable tulineno "ATUS person line number";
label variable tulk "Have you been doing anything to find work during the last four weeks?";
label variable tulkavr "Why could you not have started a job last week?";
label variable tulkdk1 "Said trying to find work. How did you go about looking? (1st method)";
label variable tulkdk2 "TULKDK1 text: (second method)";
label variable tulkdk3 "TULKDK1 text: (third method)";
label variable tulkdk4 "TULKDK1 text: (fourth method)";
label variable tulkm2 "Things you have done to find work during the last 4 weeks? (second method)";
label variable tulkm3 "TULKM2 text: (third method)";
label variable tulkm4 "TULKM2 text: (fourth method)";
label variable tulkm5 "TULKM2 text: (fifth method)";
label variable tulkm6 "TULKM2 text: (sixth method)";
label variable tulkps1 "Can you tell me more about what you did to search for work? (first method)";
label variable tulkps2 "TULKPS1 text: (second method)";
label variable tulkps3 "TULKPS1 text: (third method)";
label variable tulkps4 "TULKPS1 text: (fourth method)";
label variable tumonth "Month of diary day (month of day about which ATUS respondent was interviewed)";
label variable turetot "Are you still retired? (Retired in CPS)";
label variable tuspabs "In the last 7 days, spouse/unmarried partner have a job either full or part time?";
label variable tuspusft "Does your spouse or unmarried partner usually work 35 hours or more per week?";
label variable tuspwk "In the last 7 days, spouse/unmarried partner do any work for pay or profit?";
label variable tuyear "Year of diary day (year of day about which respondent was interviewed)";
label variable tu20fwgt "ATUS final weight with method used for 2020 pandemic";

keep telfs trchildnum trdpftpt trholiday trsppres tucaseid tudiarydate tudiaryday tufnwgtp tulineno tumonth tuyear teio1cow tehruslt;

sort tucaseid tulineno;
su;
save work/atusresp_0321.dta, replace;

log close;